//配置路由
import Vue from 'vue'
import VueRouter from 'vue-router'

//使用插件
Vue.use(VueRouter)

//引入路由组件
import sassTest from '@/components/sassTest/sassTest.vue'
import lessTest from '@/components/lessTest/lessTest.vue'
import vantTest from '@/components/vantTest/vantTest.vue'
import vxeTest from '@/components/vxeTest/vxeTest.vue'
import VirtualScroll from '@/components/VirtualScroll/VirtualScroll.vue'
import PhotoCrop from '@/components/PhotoCrop/PhotoCrop.vue'
import Questionnaire from '@/components/Questionnaire/Questionnaire.vue'
import home from '@/components/layout/layout.vue'

const router = new VueRouter({
  routes: [
    {
      path: '/',
      component: home,
      children: [
        {
          path: '/sassTest',
          component: sassTest
        },
        {
          path: '/lessTest',
          component: lessTest
        },
        {
          path: '/vantTest',
          component: vantTest
        },
        {
          path: '/vxeTest',
          component: vxeTest
        },
        {
          path: '/VirtualScroll',
          component: VirtualScroll
        },
        {
          path: '/PhotoCrop',
          component: PhotoCrop
        },
        {
          path: '/Questionnaire',
          component: Questionnaire
        }
      ]
    }
  ]
})
export default router
